package model;

import java.io.File;

import javax.swing.JInternalFrame;

import ui.EditPane;

//文件对象
public class EditFile {
	
	private File file;
	private boolean saved;
	private JInternalFrame iFrame;
	private EditPane editPane;
	
	public EditFile(File file, boolean saved, JInternalFrame frame, EditPane editPane) {
		this.file = file;
		this.saved = saved;
		this.iFrame = frame;
		this.editPane = editPane;
	}

	public File getFile() {
		return file;
	}

	public void setFile(File file) {
		this.file = file;
	}

	public boolean isSaved() {
		return saved;
	}

	public void setSaved(boolean saved) {
		this.saved = saved;
	}

	public JInternalFrame getIframe() {
		return iFrame;
	}

	public void setIframe(JInternalFrame iFrame) {
		this.iFrame = iFrame;
	}

	public EditPane getEditPane() {
		return editPane;
	}

	public void setEditPane(EditPane editPane) {
		this.editPane = editPane;
	}
	
}
